package appapi.service.impl;

import appapi.dao.OperatorMapper;
import appapi.dao.SelfcheckMapper;
import appapi.entity.Zhongjiao.SelfcheckDto;
import appapi.service.IAppOperatorService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

/**
 * @author Yujie
 * @date 2023/5/11 9:24
 * @description:
 */
@Component
public class AppOperatorService implements IAppOperatorService {
    @Autowired
    private OperatorMapper operatorMapper;
    @Autowired
    private SelfcheckMapper selfcheckMapper;
    //操作人员查询
    @Override
    public List<Map<String, Object>> GetOperator(long oper_id) {
        List<Map<String,Object>> MyList=operatorMapper.selectList(oper_id);
        return MyList;
    }
    //设备自检新增
    @Override
    public int InsertSelfcheck(SelfcheckDto dto) {
//        UUID uuid= UUID.randomUUID();
//        dto.setSelfId(uuid);
        int insert=selfcheckMapper.insert(dto);
        return insert;
    }


}
